package com.ruoyi.stock2.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock2.mapper.FORERESULTGROUPBYDATEMapper;
import com.ruoyi.stock2.domain.FORERESULTGROUPBYDATE;
import com.ruoyi.stock2.service.IFORERESULTGROUPBYDATEService;
import com.ruoyi.common.core.text.Convert;

/**
 * 日期分组预测结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2019-12-06
 */
@Service
public class FORERESULTGROUPBYDATEServiceImpl implements IFORERESULTGROUPBYDATEService 
{
    @Autowired(required = false)
    private FORERESULTGROUPBYDATEMapper fORERESULTGROUPBYDATEMapper;

    /**
     * 查询日期分组预测结果
     * 
     * @param id 日期分组预测结果ID
     * @return 日期分组预测结果
     */
    @Override
    public FORERESULTGROUPBYDATE selectFORERESULTGROUPBYDATEById(Long id)
    {
        return fORERESULTGROUPBYDATEMapper.selectFORERESULTGROUPBYDATEById(id);
    }

    /**
     * 查询日期分组预测结果列表
     * 
     * @param fORERESULTGROUPBYDATE 日期分组预测结果
     * @return 日期分组预测结果
     */
    @Override
    public List<FORERESULTGROUPBYDATE> selectFORERESULTGROUPBYDATEList(FORERESULTGROUPBYDATE fORERESULTGROUPBYDATE)
    {
        return fORERESULTGROUPBYDATEMapper.selectFORERESULTGROUPBYDATEList(fORERESULTGROUPBYDATE);
    }

    /**
     * 新增日期分组预测结果
     * 
     * @param fORERESULTGROUPBYDATE 日期分组预测结果
     * @return 结果
     */
    @Override
    public int insertFORERESULTGROUPBYDATE(FORERESULTGROUPBYDATE fORERESULTGROUPBYDATE)
    {
        return fORERESULTGROUPBYDATEMapper.insertFORERESULTGROUPBYDATE(fORERESULTGROUPBYDATE);
    }

    /**
     * 修改日期分组预测结果
     * 
     * @param fORERESULTGROUPBYDATE 日期分组预测结果
     * @return 结果
     */
    @Override
    public int updateFORERESULTGROUPBYDATE(FORERESULTGROUPBYDATE fORERESULTGROUPBYDATE)
    {
        return fORERESULTGROUPBYDATEMapper.updateFORERESULTGROUPBYDATE(fORERESULTGROUPBYDATE);
    }

    /**
     * 删除日期分组预测结果对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteFORERESULTGROUPBYDATEByIds(String ids)
    {
        return fORERESULTGROUPBYDATEMapper.deleteFORERESULTGROUPBYDATEByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除日期分组预测结果信息
     * 
     * @param id 日期分组预测结果ID
     * @return 结果
     */
    @Override
    public int deleteFORERESULTGROUPBYDATEById(Long id)
    {
        return fORERESULTGROUPBYDATEMapper.deleteFORERESULTGROUPBYDATEById(id);
    }
}
